describe("TokenSMSView", function(){

	var tokenSMSView = null;
	var tokenSMSController = null;

	beforeEach(function(){
		tokenSMSController = App.TokenSMSController.create();
		tokenSMSView = App.TokenSMSView.create();
		tokenSMSView.set('controller', tokenSMSController);
	});

	describe("didInsertElement method test", function(){

		it("didInsertElement",function(){
			spyOn(tokenSMSView, "_applyValidation");
	        spyOn(tokenSMSView, "_applyKeypress");
	        spyOn(BreezeUtils, "applyPlaceholderText");
	        
	        tokenSMSView.didInsertElement();
	        
	        expect(tokenSMSView._applyValidation).toHaveBeenCalled();
	        expect(tokenSMSView._applyKeypress).toHaveBeenCalled();
	        expect(BreezeUtils.applyPlaceholderText).toHaveBeenCalled();
	    });

	});

	describe("_applyValidation method test", function(){

		it("_applyValidation",function(){
	        spyOn(BreezeUtils, "applyInputValidation");
	        
	        tokenSMSView._applyValidation();
	        
	        expect(BreezeUtils.applyInputValidation).toHaveBeenCalled();
	    });

	});
	
});
